package com.wzy.chain_responsibility.demo2.handle;

import com.wzy.chain_responsibility.demo1.OrderContext;
import com.wzy.chain_responsibility.demo2.OrderHandleInterceptDemo2;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * @Author: wzy
 * @Date: 2022/10/08/19:20
 * @Description:
 */
@Component
@Order(2)
public class ValidOrderHandleInterceptService2 implements OrderHandleInterceptDemo2 {

    @Override
    public OrderContext handle(OrderContext context) {
        System.out.println("检查请求参数，是否合法，并且获取客户的银行账户");
        return context;
    }
}
